package Code.ExtendDemo;

public class Demo1 {
    //利用空参对象创建子类对象
    Zi zi = new Zi();

}
class FU{
    String anem;
    int age;
    public FU(){}

    public FU(String anem, int age) {
        this.anem = anem;
        this.age = age;
    }
}
class Zi extends FU{

}
